package top.hours48.ddbearapi.handler;


import org.springframework.stereotype.Component;
import top.hours48.ddbearapi.constant.PageNameK;
import top.hours48.ddbearapi.model.config.MenuMO;

import java.util.List;


@Component
public class ConfigHandler {

    public List<MenuMO> queryMenus(long userId, String pageName) {
        if (PageNameK.HOME_PAGE.equals(pageName)) {
            return List.of(
                    new MenuMO(1, 0, "商品", "pms", "", false),
                    new MenuMO(2, 1, "商品列表", "list", "ListView", false),
                    new MenuMO(3, 0, "订单", "order", "", false),
                    new MenuMO(4, 0, "权限", "ums", "", false),
                    new MenuMO(5, 4, "用户", "admin", "AdminView", false)
            );

        }

        return null;

    }
}
